import { request } from "../utils/request.js"
//首页推荐
export const getVideoDramaIndexRecommedApi = (params) => {
	return request({
		url: 'Videocenter/getVideoDramaIndexRecommed',
		method: 'GET', //请求方法
		params
	})
}
//获取分类列表
export const getSortDetailApi = (params) => {
	return request({
		url: 'Videocenter/sortDetail',
		method: 'GET', //请求方法
		params
	})
}
//登录
export const loginApi = (params) => {
    return request({
        url: 'login/login',
        method: 'POST', //请求方法
		params
    })
}
//获取观看记录列表
export const getVideoRecordApi = (params) => {
	return request({
		url: 'Videocenter/getVideoRecord',
		method: 'GET', //请求方法
		params
	})
}
//获取个人信息
export const getUserInfoApi = (params) => {
	return request({
		url: 'user/index',
		method: 'GET',
		params
	},)
}
//视频详情列表
export const getVideoDramaApi = (params) => {
	return request({
		url: 'Videocenter/getVideoDrama',
		method: 'GET',
		params
	})
}
//获取单集
export const getNewVideoDramaApi = (params) => {
	return request({
		url: 'Videocenter/episodeVideoDrama',
		method: 'POST',
		params
	})
}